import os
import logging
from flask import Flask
from service import user_service

logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', level=logging.INFO)
app = Flask(__name__)


@app.route('/hello')
def hello():
    logging.info(f'环境变量FLASK_ENV：{os.getenv("FLASK_ENV")}')
    return user_service.say_hello()